import { Profile } from '@/types/user'
const key = 'rabbit-ts-project-94'
// 设置个人信息
export const setProfile = (profile: Profile) => {
  localStorage.setItem(key, JSON.stringify(profile))
}
// 获取个人信息
export const getProfile = () => {
  return JSON.parse(localStorage.getItem(key) || '{}')
}
// 移除个人信息
export const removeProfile = () => {
  localStorage.removeItem(key)
}

